package com.joker.service;

import com.joker.dao.UserFriendMapper;
import com.joker.pojo.UserFried;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class UserFriendServiceImpl implements UserFriendService{
    public UserFriendMapper userFriendMapper;

    public UserFriendServiceImpl() {
    }

    @Override
    public ArrayList<UserFried> selectmyfriendid(UserFried userFried) {
        return this.userFriendMapper.selectmyfriendid(userFried);
    }

    @Override
    public ArrayList<UserFried> selectallmyfriendid(Integer userid) {
        return this.userFriendMapper.selectallmyfriendid(userid);
    }

    public int adduserfriend(UserFried userFried) {
        return this.userFriendMapper.addfriend(userFried);
    }

    @Override
    public ArrayList<UserFried> selectyanzhen(UserFried userFried) {
        return this.userFriendMapper.selectyanzhen(userFried);
    }

    @Override
    public Integer updatefriendid(UserFried userFried) {
        return this.userFriendMapper.updatefriendid(userFried);
    }

    public void setUserFriendMapper(UserFriendMapper userFriendMapper) {
        this.userFriendMapper = userFriendMapper;
    }
}
